package main

import "fmt"

func main() {
	ch := make(chan int)

	go func() {
		for i := 0; i < 5; i++ {
			fmt.Println("i=", i)
			ch <- i
		}
		close(ch)
	}()

	for {

	}

}
